<?php
include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/inc/session_start.php");
include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/class/Model/Model.user.php");
include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/class/class.UserManagement.php");

$user = new Model_user();
$user->email = $_POST["uname"];
$user->password = $_POST["upwd"];
$um=new UserManagement();
$r = $um->Login($user);
header('Content-type: application/json');
$arr = array();
$arr["returnvalue"] = $r;
echo json_encode($arr);